import nProgress from 'nprogress'
import 'nprogress/nprogress.css'

import eventEmitter from '@/lib/event-emitter'

export function setupNProgress() {
    eventEmitter.on('Nprogress:start', () => nProgress.start())
    eventEmitter.on('Nprogress:done', () => nProgress.done())
}